import AppLogin from "@/views/AppLogin";
import AppError404 from "@/views/error/AppError404";
import AppError401 from "@/views/error/AppError401";
import TheLayout from "@/views/layout/TheLayout";
import SlotCom from "@/components/SlotCom";
const staticRouter = [
  {
    path: "/",
    component: TheLayout,
    menu: true,
    name: "系统管理",
    children: [
      {
        path: "/user",
        name: "用户管理",
        icon: "el-icon-menu",
        component: () => import("@/views/user/User.vue")
      },
      {
        path: "/index2",
        name: "首页2",
        icon: "el-icon-menu",
        component: SlotCom,
        children: [
          {
            path: "/index2/index21",
            name: "关于21",
            icon: "el-icon-menu",
            component: () => import("@/views/About.vue")
          }
        ]
      },
      {
        path: "/index3",
        name: "首页3",
        icon: "el-icon-menu",
        component: () => import("@/views/AppLogin.vue")
      },
    ]
  },
  {
    path: "/login",
    name: "登陆",
    component: AppLogin
  },
  {
    path: "/about",
    name: "关于",
    component: () => import("@/views/About.vue")
  },
  {
    path: "/error/401",
    name: "错误401",
    meta: { errorPage: true },
    component: AppError401
  },
  {
    path: "/*",
    name: "错误404",
    meta: { errorPage: true },
    component: AppError404
  }
];
export default staticRouter;
